<script>
import Common from "@/mixins/order/commonbg.js";
import OrderService from "@/api/order/OrderService.js";
import PPMForm from "@/crm3.0part7-ppm/core/ppmForm.vue";
export default {
  name: "mstp18788",
  mixins: [PPMForm, Common],
  data() {
    return {
      //MSTP	正常变更	MTU变更
      // proName: 'MSTP'
    };
  },
  async mounted() {
      await this.initCommon();

  },

  computed: {},
  methods: {
    mtuNumber() {
            let check = /^[1-9]\d*$/;
            if (check.test(this.formData["20746-141000144"].value)) {
               if (this.formData["20746-141000144"].value >9600||this.formData["20746-141000144"].value<1518) {
                  this.$alert("只能填写1518~9600之间的正整数（包含1518和9600） !", "提示", {
                    type: "warning",
                    confirmButtonText: "关闭",
                  });
                  this.formData["20746-141000144"].value = "";
                }
            }else{
                    this.$alert("只能填写1518~9600之间的正整数（包含1518和9600） !", "提示", {
                    type: "warning",
                    confirmButtonText: "关闭",
                  });
                  this.formData["20746-141000144"].value = "";
            }

    },
    isModContactLimit() {
      if(this.formData["20746-142000765"].value=='1'){
        this.SetRequired({ attrName:'合同终止日期', formkey:'20746-142002037', reqName:'empty', reqStatus:true});
      }else{
        this.SetRequired({ attrName:'合同终止日期', formkey:'20746-142002037', reqName:'empty', reqStatus:false});
      }
    },
  },
};
</script>

